<?
/***
*    This file is part of Marketorama.
*
*    Marketorama is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    Marketorama is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR *PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with Marketorama.  If not, see <http://www.gnu.org/licenses/>.
***/
?>
<div id="main">
    <h1>New App</h1>
    <? echo form_open_multipart(site_url('apps/newapp')); ?>

    <label>Application name:</label> 
    <span class="formerror"><?=form_error('Name');?></span>
    <input type="text" name="Name" value="<?=set_value('Name'); ?>" maxlength="120" size="60" />
    
    <label>Url:</label>
    <span class="formerror"><?=form_error('Url');?></span>
    <input type="text" name="Url" value="<?=set_value('Url');?>" maxlength="100" size="60" />
    
    <label>Package: </label>
    <span class="formerror"><?=form_error('Package');?></span>
    <input type="text" name="Package" value="<?=set_value('Package');?>" maxlength="100" size="60" />
    
    <label>Description:</label>
    <span class="formerror"><?=form_error('Description');?></span>
    <textarea name="Description" cols="60"><?=set_value('Description'); ?></textarea>
    
    <label>Icon: </label>
    <span class="formerror"><?=form_error('Icon');?></span>
    <input type="text" name="Icon" value="<?=set_value('Icon');?>" maxlength="60" size="60" />
    
    <input type="submit" valued="Add"/>

    </form>
</div><!-- end main -->

